package JAVA基础01.数组.三种定义的方式;

//数组
public class text {
    public static void main(String[] args) {
        //int[] a = new int [3];
        //int[] b = new int []{1,2,3};
        int[] c = {1, 2, 3};
        System.out.println(c[2]);           //取值
        System.out.println(c[2] = 5);         //赋值
    }
}
